<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>虚拟 DOM</title>
    <script src="./js/react.development.js"></script>
    <script src="./js/react-dom.development.js"></script>
  </head>
  <body>
    <div id="root"></div>
    <script>
      // React 元素  『虚拟 DOM 对象』
      let vdom = React.createElement('h2', {title: '测试'}, 'React 元素');
      //获取 root 真实DOM对象   『配置代码片段』
      let root = document.querySelector('#root');
      //
      console.log(vdom);

      console.dir(root);
    </script>
  </body>
</html>
